<h2><%= @title %></h2>
<%= error_messages_for 'user' %>
<% form_for :user do |f| %>
<fieldset>
	<legend>Uaktualnij Info</legend>
	<div class="row">
		<label for="name">Imię:</label>
		<%= f.text_field :name, :size => 20, :maxlength => 20 %>
	</div>
		
	<div class="row">
		<label for="surname">Nazwisko:</label>
		<%= f.text_field :surname, :size => 20, :maxlength => 20 %>
	</div>
	
	<div class="row">
		<label for="country">Kraj:</label>
		<%= f.text_field :country, :size => 20, :maxlength => 20 %>
	</div>
		
	<div class="row">
		<label for="city">Miasto:</label>
		<%= f.text_field :city, :size => 20, :maxlength => 20 %>
	</div>
	
	<%= render :partial => "email_field", :locals => { :form => f} %>
	<%= hidden_field_tag "attribute", "info", :id => nil %>
	<%= submit_tag "Uaktualnij", :class => "submit" %>
</fieldset>
<% end %>

<% form_for :user do |f| %>
<fieldset>
	<legend>Uaktualnij Hasło</legend>
	<%= render :partial => "password_field",
			   :locals => { :form => f,
			   				:field => "current_password",
			   				:field_title => "Obecne hasło:" } %>
	
	<%= render :partial => "password_field",
			   :locals => { :form => f,
			   				:field => "password",
			   				:field_title => "Nowe hasło:" } %>	
			   				
	<%= render :partial => "password_field",
			   :locals => { :form => f,
			   				:field => "password_confirmation",
			   				:field_title => "Potwierdź hasło:" } %>			   						   				
	<%= hidden_field_tag "attribute", "password", :id => nil %>
	<%= submit_tag "Uaktualnij", :class => "submit" %>
</fieldset>
<% end %>